import { createAPI } from '@/utils/request'
// 获取司机分页数据
export const driverList = data => createAPI(`/driver/page`, 'get', data)
// 获取司机详细信息
export const driverXi = id => createAPI(`/driver/${id}`, 'get')
// 获取司机驾驶证信息
export const driverJia = id => createAPI(`/driverLicense/${id}`, 'get')
// 保存驾驶证信息
export const driverJiacun = data => createAPI(`/driverLicense`, 'post', data)
// 保存司机信息
export const driverXicun = (id, data) => createAPI(`/driver/${id}`, 'post', data)
